package region

import (
	"gitee.com/krio/grpc-go-server/dao/model"
	"gitee.com/krio/grpc-go-server/dao/model/common"
)

func (*Country) TableName() string {
	return model.TableRegionCountry
}

type Country struct {
	*common.AutoincrID `xorm:"extends"`
	CNName             string `xorm:"cn_name varchar(255) comment('中文简称')"`
	ENName             string `xorm:"en_name varchar(255) comment('英文简称')"`
	ENFullName         string `xorm:"en_full_name varchar(255) comment('英文全称')"`
	ENCode2            string `xorm:"en_code2 char(2) comment('两字母代码')"`
	ENCode3            string `xorm:"en_code3 char(3) comment('三字母代码')"`
	NumCode            string `xorm:"varchar(5) comment('数字代码')"`
	PhoneCode          int32  `xorm:"int comment('手机区号')"`
	Sort               int32  `xorm:"default(0) comment('自定义排序')"`
	Remark             string `xorm:"varchar(255) comment('备注')"`
}
